package basic.reflect;

/**
 * @author Administrator
 *
 */
public class DoSomethingImpl implements DoSomething {

	public long id = 0;
	public String name = "";
	
	public DoSomethingImpl(){
		this(0,"");
	}
	
	public DoSomethingImpl(long id){
		this(id,"");
	}
	
	public DoSomethingImpl(long id, String name){
		this.id = id;
		this.name = name;
	}
	
	/* (non-Javadoc)
	 * @see basic.reflect.DoSomething#doSomething()
	 */
	@Override
	public Object doSomething() {
		System.out.println("this is doSomething method.");
		return this.toString();
	}


	public long getId() {
		return id;
	}


	public void setId(long id) {
		this.id = id;
	}


	public String getName() {
		return name;
	}


	public void setName(String name) {
		this.name = name;
	}
	
	public String toString(){
		return "id="+this.id+";name="+this.name;
	}

}
